import request from "@/utils/request/request";

// 区域列表
export function showRegion(RegionList){
  return request({
    url: 'http://localhost:9999/jeecg-region/region/regionList',
    method: 'get',
    params: RegionList
  })
}


//城市列表
export function showCity(){
  return request({
    url: 'http://localhost:9999/jeecg-region/cityDirectory/cityList',
    method: 'get'
  })
}


// 新增区域
export function addregion(region){
  return request({
    url: 'http://localhost:9999/jeecg-region/region/addRegion',
    method: 'post',
    params: region
  })
}


// 删除区域
export function delregion(region){
  return request({
    url: 'http://localhost:9999/jeecg-region/region/delRegion',
    method: 'post',
    params: region
  })
}

// 启动区域
export function qidregion(region){
  return request({
    url: 'http://localhost:9999/jeecg-region/region/qiYongRegion',
    method: 'post',
    params: region
  })
}


//    修改区域
export function xgregion(region){
  return request({
    url: 'http://localhost:9999/jeecg-region/region/updateRegion',
    method: 'post',
    params: region
  })
}
